<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width: 130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="7" class="t_bar2">直接融资情况</td>

	</tr>
	<tr>
		<td align="right" colspan="2"><span class="color_red">*</span>项目名称：</td>
		<td colspan="5"><input id="zh_title" name="proposal/zh_title"
			label="项目名称" type="text" required
			class="input_css required maxlength:100" style="width:80%;"
			maxlength="100"
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>



	<tr>
		<td align="right" colspan="2"><span class="color_red">*</span>项目所属类别：</td>
		<td nowrap colspan="5" valign="middle"><label> <input
				type="radio" class="do " id="advant_01" onclick="setNeedByResearch()"
				style="vertical-align: middle;" name="research" label="上市"
				value="01" /><span style="vertical-align: middle;">上市</span></label> <label>
				<input type="radio" class="do " id="advant_02" onclick="setNeedByResearch()"
				style="vertical-align: middle;" name="research" label="发债"
				value="02" /><span style="vertical-align: middle;">发债</span>
		</label> <label> <input type="radio" class="do " id="advant_03" onclick="setNeedByResearch()"
				style="vertical-align: middle;" name="research" label="私募"
				value="03" /><span style="vertical-align: middle;">私募</span></label> <label>
				<input type="radio" class="do " id="advant_04" onclick="setNeedByResearch()"
				style="vertical-align: middle;" name="research" label="增发"
				value="04" /><span style="vertical-align: middle;">增发</span>
		</label> <input type="hidden" name="proposal/research_value"
			id="research_value" class="required"
			value="<x:out select="$xmlData/data/proposal/research_value" />"
			label="项目所属类别" /> <input type="hidden" name="proposal/research_name"
			id="research_name"
			value="<x:out select="$xmlData/data/proposal/research_name" />" /></td>
	</tr>

	<tr>
		<td align="right" colspan="2"><span class="color_red">*</span>批准机构：</td>
		<td colspan="3"><input name="proposal/prp_basic1" label="批准机构"
			type="text" class="input_css required maxlength:100" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/prp_basic1" />" /></td>
		<td align="right"><span class="color_red">*</span>批准文号：</td>
		<td colspan="1"><input name="proposal/prp_basic2" label="批准文号"
			type="text" class="input_css required maxlength:100" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/prp_basic2" />" /></td>
	</tr>


	<tr>
		<td rowspan="4" align="center">债券融资</td>
		<td align="right"><span id="need_span_z_prp_basic3" class="color_red">*</span>债券名称：</td>
		<td colspan="3"><input id="prp_basic3" name="proposal/prp_basic3" label="债券融资-->债券名称" type="text"
			class="input_css required maxlength:100" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/prp_basic3" />" /></td>
		<td align="right"><span id="need_span_z_prp_basic4" class="color_red">*</span>融资规模（万元）：</td>
		<td><input id="prp_basic4" name="proposal/prp_basic4" style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,4,2)" label="债券融资-->融资规模" type="text"
			class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic4" />" /></td>
	</tr>

	<tr>

		<td align="right"><span id="need_span_z_prp_basic5" class="color_red">*</span>债券利率（%）：</td>
		<td colspan="3"><input id="prp_basic5" name="proposal/prp_basic5" label="债券融资-->债券利率" type="text"
			style="text-align: right;" onfocus="InitInput.setNumber(this,9,2,2)"
			class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic5" />" /></td>
		<td align="right"><span id="need_span_z_prp_basic6" class="color_red">*</span>债券期限（月）：</td>
		<td><input id="prp_basic6" name="proposal/prp_basic6" style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,0,0)" label="债券融资-->债券期限" type="text"
			class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic6" />" /></td>
	</tr>


	<tr>

		<td align="right"><span id="need_span_z_prp_basic7" class="color_red">*</span>当年到位金额（万元）：</td>
		<td colspan="3"><input id="prp_basic7" name="proposal/prp_basic7" style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,4,2)" label="债券融资-->当年到位金额" type="text"
			class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic7" />" /></td>
		<td align="right"><span id="need_span_z_reach_date" class="color_red">*</span>到位时间：</td>
		<td><c:set var="reach_date">
				<x:out select="$xmlData/data/proposal/reach_date" />
			</c:set> <cpt:date id="reach_date" name="proposal/reach_date"
				value="${reach_date}" className=" required date" label="债券融资-->到位时间"></cpt:date>
		</td>
	</tr>
	<tr>

		<td nowrap align="right"><span id="need_span_z_prp_basic8" class="color_red">*</span>累计到位资金（万元）：</td>
		<td colspan="3"><input id="prp_basic8" name="proposal/prp_basic8" style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,4,2)" label="债券融资-->累计到位资金" type="text"
			class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic8" />" /></td>
		<td align="right"><span id="need_span_z_prp_basic10" class="color_red">*</span>代发银行：</td>
		<td><input id="prp_basic10" name="proposal/prp_basic9" maxlength="100"
			label="债券融资-->代发银行" type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic9" />" /></td>
	</tr>






	<tr>
		<td rowspan="6" align="center">股权融资</td>
		<td align="right"><span id="need_span_g_prp_basic25" class="color_red">*</span>股票名称：</td>
		<td colspan="3"><input id="prp_basic25" name="proposal/prp_basic25" label="股权融资-->股票名称" type="text"
			class="input_css required maxlength:100" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/prp_basic25" />" /></td>
		<td align="right"><span id="need_span_g_prp_basic24" class="color_red">*</span>股票代码：</td>
		<td><input id="prp_basic24" name="proposal/prp_basic24"  label="股权融资-->股票代码" type="text"
			class="input_css required " maxlength="100"
			value="<x:out select="$xmlData/data/proposal/prp_basic24" />" /></td>
	</tr>
	<tr>
		<td align="right"><span id="need_span_g_prp_basic23" class="color_red">*</span>股本数（万股）：</td>
		<td colspan="3"><input id="prp_basic23" name="proposal/prp_basic23" label="股权融资-->股本数" type="text"
			class="input_css required "  style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,0,0)" 
			value="<x:out select="$xmlData/data/proposal/prp_basic23" />" /></td>
		<td align="right"><span id="need_span_g_prp_basic22" class="color_red">*</span>每股价格（元）：</td>
		<td><input id="prp_basic22" name="proposal/prp_basic22" style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,4,2)" label="股权融资-->每股价格" type="text"
			class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic22" />" /></td>
	</tr>
	<tr>
		<td rowspan="2" align="center"><span id="need_span_g_prp_basic_value" class="color_red">*</span>上市地选择</td>
		<td align="center"><label><input type="checkbox" class="do " id="prp_basic_01"
				style="vertical-align: middle;" name="prp_basic" label="境内上市"
				value="01" onclick="setStatus();"/><span style="vertical-align: middle;">境内上市</span></label></td>
		<td colspan="4"><label><input type="radio" class="do " id="advant_01"
				style="vertical-align: middle;" name="prp_basic_1" label="上海证券交易所"
				value="01" /><span style="vertical-align: middle;">上海证券交易所</span></label> <label><input
				type="radio" class="do " id="advant_02"
				style="vertical-align: middle;" name="prp_basic_1"
				label="深圳证券交易所中小企业版" value="02" /><span
				style="vertical-align: middle;">深圳证券交易所中小企业版</span></label> <label><input
				type="radio" class="do " id="advant_03"
				style="vertical-align: middle;" name="prp_basic_1"
				label="深圳证券交易所创业版" value="03" /><span
				style="vertical-align: middle;">深圳证券交易所创业版</span></label> <input
			type="hidden" name="proposal/prp_basic_1_value"
			id="prp_basic_1_value" class="required"
			value="<x:out select="$xmlData/data/proposal/prp_basic_1_value" />"
			label="股权融资-->上市地选择->境内上市" /> <input type="hidden"
			name="proposal/prp_basic_1_name" id="prp_basic_1_name"
			value="<x:out select="$xmlData/data/proposal/prp_basic_1_name" />" />
		</td>
	</tr>
	<tr>

		<td align="center"><label><input type="checkbox" class="do " id="prp_basic_02"
				style="vertical-align: middle;" name="prp_basic" label="境外上市"
				value="02" onclick="setStatus();"/><span style="vertical-align: middle;">境外上市</span></label> <input
			type="hidden" name="proposal/prp_basic_value" id="prp_basic_value"
			class="required"
			value="<x:out select="$xmlData/data/proposal/prp_basic_value" />"
			label="股权融资-->上市地选择" /> <input type="hidden"
			name="proposal/prp_basic_name" id="prp_basic_name"
			value="<x:out select="$xmlData/data/proposal/prp_basic_name" />" />
		</td>
		<td colspan="4"><label><input type="radio" class="do " id="advant_01"
				style="vertical-align: middle;" name="prp_basic_2" label="香港证券交易所"
				value="01" /><span style="vertical-align: middle;">香港证券交易所</span></label> <label><input
				type="radio" class="do " id="advant_02"
				style="vertical-align: middle;" name="prp_basic_2" label="新加坡证券交易所"
				value="02" /><span style="vertical-align: middle;">新加坡证券交易所</span></label>
			<label><input type="radio" class="do " id="advant_03"
				style="vertical-align: middle;" name="prp_basic_2" label="美国NASDAQ"
				value="03" /><span style="vertical-align: middle;">美国NASDAQ</span></label>
			<label><input type="radio" class="do " id="advant_04"
				style="vertical-align: middle;" name="prp_basic_2" label="其他"
				value="04" /><span style="vertical-align: middle;">其他</span></label> <input
			type="hidden" name="proposal/prp_basic_2_value"
			id="prp_basic_2_value" class="required"
			value="<x:out select="$xmlData/data/proposal/prp_basic_2_value" />"
			label="股权融资-->上市地选择->境外上市" /> <input type="hidden"
			name="proposal/prp_basic_2_name" id="prp_basic_2_name"
			value="<x:out select="$xmlData/data/proposal/prp_basic_2_name" />" />
		</td>
	</tr>

	<tr>
		<td align="right"><span id="need_span_g_prp_basic21" class="color_red">*</span>融资规模（万元）：</td>
		<td colspan="3"><input id="prp_basic21" name="proposal/prp_basic21" label="股权融资-->融资规模" type="text"
			class="input_css required " style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,4,2)" 
			value="<x:out select="$xmlData/data/proposal/prp_basic21" />" /></td>
		<td align="right"><span id="need_span_g_prp_basic20" class="color_red">*</span>投资无锡地区资金（万元）：</td>
		<td><input id="prp_basic20" name="proposal/prp_basic20" style="text-align: right;"
			onfocus="InitInput.setNumber(this,9,4,2)" label="股权融资-->投资无锡地区资金"
			type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic20" />" /></td>
	</tr>

	<tr>
		<td align="right"><span id="need_span_g_prp_basic19" class="color_red">*</span>投资主要项目：</td>
		<td colspan="5"><input id="prp_basic19" name="proposal/prp_basic19" label="股权融资-->投资主要项目" type="text"
			class="input_css required maxlength:100" maxlength="100" style="width:673px;"
			value="<x:out select="$xmlData/data/proposal/prp_basic19" />" /></td>
	</tr>



	<tr>
		<td rowspan="3" align="center">中介机构</td>
		<td align="right"><span class="color_red">*</span>券商：</td>
		<td><input name="proposal/prp_basic10" maxlength="100"
			label="中介机构->券商" type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic10" />" /></td>
		<td align="right"><span class="color_red">*</span>负责人：</td>
		<td><input name="proposal/prp_basic11" maxlength="100"
			label="中介机构->券商->负责人" type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic11" />" /></td>
		<td align="right"><span class="color_red">*</span>电话：</td>
		<td><input name="proposal/prp_basic12" maxlength="100"
			label="中介机构->券商>电话" type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic12" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>会计师事务所：</td>
		<td><input name="proposal/prp_basic13" maxlength="100"
			label="中介机构->会计师事务所" type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic13" />" /></td>
		<td align="right"><span class="color_red">*</span>负责人：</td>
		<td><input name="proposal/prp_basic14" maxlength="100"
			label="中介机构->会计师事务所->负责人" type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic14" />" /></td>
		<td align="right"><span class="color_red">*</span>电话：</td>
		<td><input name="proposal/prp_basic15" maxlength="100"
			label="中介机构->会计师事务所->电话" type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic15" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>律师事务所：</td>
		<td><input name="proposal/prp_basic16" maxlength="100"
			label="中介机构->律师事务所" type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic16" />" /></td>
		<td align="right"><span class="color_red">*</span>负责人：</td>
		<td><input name="proposal/prp_basic17" maxlength="100"
			label="中介机构->律师事务所->负责人" type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic17" />" /></td>
		<td align="right"><span class="color_red">*</span>电话：</td>
		<td><input name="proposal/prp_basic18" maxlength="100"
			label="中介机构->律师事务所->电话" type="text" class="input_css required "
			value="<x:out select="$xmlData/data/proposal/prp_basic18" />" /></td>
	</tr>





	<tr>
		<td align="right"  colspan="2"><span class="color_red">*</span>申报日期：</td>
		<td colspan="5"><c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" className=" required date" label="申报日期"></cpt:date>
		</td>

	</tr>
	<tr>
		<td colspan="7" class="t_bar2">申请项目资金情况</td>

	</tr>
	<tr>
		<td align="right" colspan="2">项目类别：</td>
		<td colspan="3"><x:out select="$xmlData/data/proposal/grant_name" /></td>
		<td align="right">支持方式：</td>
		<td ><span name="proposal/sponsor_category"><x:out
					select="$xmlData/data/proposal/sponsor_category" /></span></td>
	</tr>

	<tr>


		<td align="right" colspan="2"><span class="color_red">*</span>申请金额（万元）：</td>
		<td colspan="3"><input id="source_apply" name="proposal/total_funds"
			style="text-align: right;" onfocus="InitInput.setNumber(this,9,4,2)"
			label="申请项目资金情况->申请金额" type="text" required
			class="input_css required" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/total_funds" />" /></td>
		<td align="right">资金级次：</td>
		<td ><span name="proposal/fund_level">市级</span></td>
	</tr>
	<tr>

		<td align="right" colspan="2">归口管理部门：</td>
		<td colspan="3"><span name="proposal/org_name">无锡市人民政府金融工作办公室</span></td>
		<td align="right">管理类别：</td>
		<td ><span name="proposal/manage_category"><x:out
					select="$xmlData/data/proposal/manage_category" /> </span></td>
	</tr>

	<tr>
		<td align="right" colspan="2"><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5"><c:set var="industry">
				<x:out select="$xmlData/data/proposal/industry_value" />
			</c:set> <cpt:checkbox key="industry" name="industry" repeatColumn="5"
				style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox> <input
			type="hidden" id="industry_value" name="proposal/industry_value"
			class="required" value="${industry}" label="申请项目资金情况->项目所属产业">
			<input type="hidden" name="proposal/industry_name"
			value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
		<td align="right" colspan="2">功能分类：</td>
		<td colspan="5"><span name="proposal/grant_function"><x:out
					select="$xmlData/data/proposal/grant_function" /></span></td>

	</tr>
</table>


<table width="100%" border="0" cellpadding="0" cellspacing="1" id="basicInfo4">
	<tr>
		<td class="t_bar2">申请资助依据条款</td>

	</tr>
	<tr>
		<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
			name="proposal/policy_foundation"><x:out
					select="$xmlData/data/proposal/policy_foundation" /></span>
		</td>
	</tr>
	<tr>
	<td  class="t_bar2"><span class="color_red">*</span>项目概述：简要概括项目主要成就、创新性、发展前景以及预期对行业带动作用、社会经济发展的贡献（限300字）
	</tr>
	 <tr>
		<td >
			<textarea id="summary" name="proposal/summary" rows="7" cols="150"  label="项目概述""  class="textarea required maxlength:300"><x:out select="$xmlData/data/proposal/summary" /></textarea>
		    <input type="hidden" name="proposal/summary_hidden" id="proposal/summary_hidden" value="<x:out select="$xmlData/data/proposal/summary_hidden" />"/>
		</td>
	</tr>
</table>
<br />
<div class="t_bar">人员信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo5" cellspacing="1">
	<tr>
		<td align="right"><span class="color_red">*</span>项目联系人：</td>
		<td><input name="proposal/contact_psn_cname" label="项目联系人"
			type="text" required class="input_css required" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系电话：</td>
		<td><input name="proposal/contact_psn_tel" label="联系电话"
			type="text" required class="input_css required" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系手机：</td>
		<td><input name="proposal/contact_psn_mobile" label="联系手机"
			type="text" required maxlength="11" required
			class="input_css required mobile" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />" />
		</td>
		<td align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td><input name="proposal/contact_psn_email" label="电子邮箱"
			type="text" required class="input_css required email" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/contact_psn_email" />" />
		</td>
	</tr>

	<tr>
		<td align="right">项目负责人：</td>
		<td><input name="proposal/fzr_psncode" type="hidden" required
			class="input_css " maxlength="20"
			value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />" />

			<span name="proposal/fzr_psnname"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
			<c:set var="psnCode">
				<x:out select="$xmlData/data/proposal/psn_code" />
			</c:set> <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect"> <input type="button"
					class="button_02" style="height: 25px; padding: 1px;"
					id="selectPsn" value="设置"> <cpt:personSelect
						key="personSelect" addRole="3" psnCode="${psnCode}"
						callback="selectPsnCall" bindEvent="click" bindObject="selectPsn"
						title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize></td>
		<td align="right">联系电话：</td>
		<td><span name="proposal/fzr_tel" class="person"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td align="right">联系手机：</td>
		<td><span name="proposal/fzr_mobile"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td align="right">电子邮箱：</td>
		<td><span name="proposal/fzr_mail"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>


<script type="text/javascript">
	function selectPsnCall(data) {
		$("input[name$='fzr_psncode']").val(data.person.psnCode);
		$("span[name$='fzr_psnname']").text(data.person.zhName);
		$("span[name$='fzr_tel']").text(data.personExtend.contact.tel_work);
		$("span[name$='fzr_mobile']").text(data.personExtend.contact.mobile);
		$("span[name$='fzr_mail']").text(data.personExtend.contact.email);

		$("input[name$='psn_code']").val(data.person.psnCode);
		tb_remove2();
	}
	
	$(function() {	
	
		setStatus();
		
		setNeedByResearch();
	});
	
	function setStatus() {
		
		
		
		var prp_basic_01=$("#prp_basic_01").is(":checked");
		var prp_basic_02=$("#prp_basic_02").is(":checked");
		
		if (prp_basic_01&&!prp_basic_02) {
			$("input[type='radio'][name='prp_basic_1']").attr("disabled", false);
			$("#prp_basic_1_value").addClass("required");
			$("input[type='radio'][name='prp_basic_2']").attr("checked", false);
			$("input[type='radio'][name='prp_basic_2']").attr("disabled", true);
			$("#prp_basic_2_name").val("");
			$("#prp_basic_2_value").val("");
			$("#prp_basic_2_value").removeClass("required");	
		}
		if (prp_basic_02&&!prp_basic_01) {
			$("input[type='radio'][name='prp_basic_2']").attr("disabled", false);
			$("#prp_basic_2_value").addClass("required");
			$("input[type='radio'][name='prp_basic_1']").attr("checked", false);
			$("input[type='radio'][name='prp_basic_1']").attr("disabled", true);
			$("#prp_basic_1_name").val("");
			$("#prp_basic_1_value").val("");
			$("#prp_basic_1_value").removeClass("required");
			
		}
		if(!prp_basic_02&&!prp_basic_01){
			$("input[type='radio'][name='prp_basic_1']").attr("checked", false);
			$("input[type='radio'][name='prp_basic_1']").attr("disabled", true);
			$("#prp_basic_1_name").val("");
			$("#prp_basic_1_value").val("");
			$("#prp_basic_1_value").removeClass("required");
			$("input[type='radio'][name='prp_basic_2']").attr("checked", false);
			$("input[type='radio'][name='prp_basic_2']").attr("disabled", true);
			$("#prp_basic_2_name").val("");
			$("#prp_basic_2_value").val("");
			$("#prp_basic_2_value").removeClass("required");	
		}
		if (prp_basic_02&&prp_basic_01) {
			$("input[type='radio'][name='prp_basic_2']").attr("disabled", false);
			$("input[type='radio'][name='prp_basic_1']").attr("disabled", false);
			$("#prp_basic_1_value").addClass("required");
			$("#prp_basic_2_value").addClass("required");
		}
		
   }
	
	function setNeedByResearch(){
		var isChecked = false; 
		$("input[name='research']").each(function(){
			var val = $(this).val();
			if($(this).attr("checked")){
				if(val == '02'){
					$("span[id^='need_span_z_']").each(function(){
						var span = $(this);
						var id = span.attr("id");
						var fix = id.replace("need_span_z_","");
						span.text("*");
						$("#"+fix).addClass("required");
					});
					$("span[id^='need_span_g_']").each(function(){
						var span = $(this);
						var id = span.attr("id");
						var fix = id.replace("need_span_g_","");
						span.text("");
						$("#"+fix).removeClass("required");
					});
				}else{
					$("span[id^='need_span_z_']").each(function(){
						var span = $(this);
						var id = span.attr("id");
						var fix = id.replace("need_span_z_","");
						span.text("");
						$("#"+fix).removeClass("required");
					});
					$("span[id^='need_span_g_']").each(function(){
						var span = $(this);
						var id = span.attr("id");
						var fix = id.replace("need_span_g_","");
						span.text("*");
						$("#"+fix).addClass("required");
					});
				}
				isChecked = true;
			}
		});
		if(!isChecked){
			$("span[id^='need_span_z_']").each(function(){
				var span = $(this);
				var id = span.attr("id");
				var fix = id.replace("need_span_z_","");
				span.text("");
				$("#"+fix).removeClass("required");
			});
			$("span[id^='need_span_g_']").each(function(){
				var span = $(this);
				var id = span.attr("id");
				var fix = id.replace("need_span_g_","");
				span.text("");
				$("#"+fix).removeClass("required");
			});
		}
	}
</script>


